Intel ondAPI user installation

(work in progress)

Last updated on 6-2-2023

This page explains how to install Intel’s oneAPI base and hpc kits to the user’s home directory. This is based on Intel’s documentations and should be considered as a summary.

Anything installed other than PVCs, it will not be saved. The default oneAPI installation directory is /opt/intel, and simply moving this folder to your directory provides a quick way to keep the software.

Note

One can install these toolkits via apt. However, unless they are installed in the user’s private directory, one needs to repeat installation after each boot.

Versions used in this instruction

Size        3052.55 MB
Version     2023.1
Date        March 29, 2023
SHA384      aa874c08c985095c710f849af7e3d1f0cfecf561398056d391aae2528c40ea12994b17e244646597be4e55cb762490e1
Size        1568.87 MB
Version     2023.1
Date        March 28, 2023
SHA384      090c7da4be49fae5d227d109538449d015698c0162aeadd2001baf9ca8b5050a54fa0b84f5598e2507b7b153de491054

Installation

  1. Download files

wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7deeaac4-f605-4bcf-a81b-ea7531577c61/l_BaseKit_p_2023.1.0.46401_offline.sh &&
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/1ff1b38a-8218-4c53-9956-f0b264de35a4/l_HPCKit_p_2023.1.0.46346_offline.sh
  1. Verify the downloads

rm checksum_oneapi_toolkits.txt
echo "aa874c08c985095c710f849af7e3d1f0cfecf561398056d391aae2528c40ea12994b17e244646597be4e55cb762490e1  l_BaseKit_p_2023.1.0.46401_offline.sh" >> checksum_oneapi_toolkits.txt &&
echo "090c7da4be49fae5d227d109538449d015698c0162aeadd2001baf9ca8b5050a54fa0b84f5598e2507b7b153de491054  l_HPCKit_p_2023.1.0.46346_offline.sh" >> checksum_oneapi_toolkits.txt &&
shasum -a 384 -c checksum_oneapi_toolkits.txt &&
rm checksum_oneapi_toolkits.txt
  1. Install base and hpc kits

sh ./l_BaseKit_p_2023.1.0.46401_offline.sh -a --silent --eula accept | tee basekit_installation_output.txt &&
sh ./l_HPCKit_p_2023.1.0.46346_offline.sh -a --silent --eula accept | tee hpc_installation_output.txt

Loading oneAPI

Assume that the oneAPI package is installed in ~/intel source the setting file.

source ~/intel/oneapi/setvars.sh

Script

Here is a intel-oneAPI-script.sh script which will do all the things listed above.

#!/bin/bash

wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7deeaac4-f605-4bcf-a81b-ea7531577c61/l_BaseKit_p_2023.1.0.46401_offline.sh && 
wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/1ff1b38a-8218-4c53-9956-f0b264de35a4/l_HPCKit_p_2023.1.0.46346_offline.sh

base_kit_file="l_BaseKit_p_2023.1.0.46401_offline.sh"
base_kit_sha384="aa874c08c985095c710f849af7e3d1f0cfecf561398056d391aae2528c40ea12994b17e244646597be4e55cb762490e1"

hpc_kit_file="l_HPCKit_p_2023.1.0.46346_offline.sh"
hpc_kit_sha384="090c7da4be49fae5d227d109538449d015698c0162aeadd2001baf9ca8b5050a54fa0b84f5598e2507b7b153de491054"

base_checksum=$(shasum -a 384 "$base_kit_file" | awk '{ print $1 }')
hpc_checksum=$(shasum -a 384 "$hpc_kit_file" | awk '{ print $1 }')

if [ "$base_checksum" = "$base_kit_sha384" ]; then
echo "Base-kit checksum verification successful!"
else
echo "Base-kit checksum verification failed!"
exit 1  
fi

if [ "$hpc_checksum" = "$hpc_kit_sha384" ]; then
echo "HPC-kit checksum verification successful!"
else
echo "HPC-kit checksum verification failed!"
exit 1  
fi

sh ./l_BaseKit_p_2023.1.0.46401_offline.sh -a --silent --eula accept | tee basekit_installation_output.txt && \
sh ./l_HPCKit_p_2023.1.0.46346_offline.sh -a --silent --eula accept | tee hpc_installation_output.txt && \
source ~/intel/oneapi/setvars.sh